package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.searchusers;

import br.edu.ufcg.lsd.wbis.ui.client.beans.UserInfo;
import br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.GenericTabPanel;
import br.edu.ufcg.lsd.wbis.ui.client.ui.management.InfoManager;

import com.gwtext.client.widgets.TabPanel;
import com.gwtext.client.widgets.layout.FitLayout;

/**
 * @author Renato Miceli
 */
public class SearchUsersTab extends GenericTabPanel {

	public SearchUsersTab(TabPanel centerPanel, InfoManager<UserInfo> infoManager) {

		this.setTitle("Search Users");
		this.setLayout(new FitLayout());
		this.setPaddings(150, 270, 270, 170);

		this.add(new SearchUsersInnerPanel(centerPanel, infoManager));
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getTabId() {
		return Double.toString(Math.random() * (1000000000));
	}

}